package com.example.ecommerce.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ecommerce.dto.ProductSpecDTO;
import com.example.ecommerce.entity.ProductSpec;

import java.util.List;

public interface ProductSpecService extends IService<ProductSpec> {
    List<ProductSpecDTO> getSpecsByProductId(Long productId);
    
    ProductSpecDTO createSpec(ProductSpecDTO specDTO);
    
    ProductSpecDTO updateSpec(Long id, ProductSpecDTO specDTO);
    
    void deleteSpec(Long id);
    
    void deleteByProductId(Long productId);
} 